package com.think.teaching.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.think.teaching.model.CourseTeacher;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 课程和老师关联表 服务类
 * </p>
 *
 * @author think
 * @since 2020-08-12
 */
@Service
public interface CourseTeacherService extends IService<CourseTeacher> {
	CourseTeacher AddCourseTeacher(CourseTeacher courseTeacher);

	CourseTeacher UpdateCourseTeacher(CourseTeacher courseTeacher);

	CourseTeacher GetCourseTeacher(Integer id);
	
	List<CourseTeacher> SearchCourseTeachersWithKey(String key,Boolean withoutBan); 

	IPage<CourseTeacher> ListCourseTeacherWithTagAndType(Integer count, Integer page, Integer type, Integer tag,Boolean withoutBan);

	CourseTeacher SetCourseTeacherState(Integer id, Integer state);
}
